#ifndef __ESP8266_h
#define __ESP8266_h


#include "sys.h"
#include "stm32f4xx.h"
#include "delay.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "usart.h"
#include "rtc.h"

#define AP_SSID "GZJ"
#define AP_PASS "88888888"

#define EN_DEBUG_ESP8266	0

int32_t net_init(char* ssid,char* pswd);
int32_t net_connect_server(void);
int32_t net_disconnect_server(void);
int32_t net_get_time(uint8_t *result);
int32_t net_time_to_rtc(const char *net_time);	
int32_t find_time_in_str(uint8_t *str,uint8_t *result);


#endif
